import request from '@/utils/request'

// 取水设备关系维护-列表
const waterIntakeDeviceRelationshipList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterIntakeMaintain/getWaterIntakeMaintainList',
    method: 'post',
    data: params
  })
}

// 取水权人名称-查询(取水权人名称选项)
const waterIntakeQSQROptions = function (params = {}) {
  return request({
    url: '/zy-api/api/waterIntakeMaintain/getWaterIntakeQSQR',
    method: 'post',
    data: params
  })
}

// 取水户名称-查询(取水户名称选项)
const waterIntakeQSHOptions = function (params = {}) {
  return request({
    url: '/zy-api/api/waterIntakeMaintain/getWaterIntakeQSH',
    method: 'post',
    data: params
  })
}

// 灌区名称-查询(灌区名称选项)
const waterIntakeGQOptions = function (params = {}) {
  return request({
    url: '/zy-api/api/waterIntakeMaintain/getWaterIntakeGQ',
    method: 'post',
    data: params
  })
}

// 取水设备关系维护-编辑
const editWaterIntakeDeviceRelationship = function (params = {}) {
  return request({
    url: '/zy-api/api/waterIntakeMaintain/addWaterIntake',
    method: 'post',
    data: params
  })
}

export {
  waterIntakeDeviceRelationshipList,
  waterIntakeQSQROptions,
  waterIntakeQSHOptions,
  waterIntakeGQOptions,
  editWaterIntakeDeviceRelationship
}